<?php

namespace backend\models\system;

use Yii;
use backend\models\system\SysConfig;

/**
 * ContactForm is the model behind the contact form.
 */
class UserLoginForm extends SysConfig
{
	public $login_limit;//用户登录权限
	public $other_login;//第三方登录
	public $login_protect;//用户登录保护
	public $sina_status;//微博登陆接口控制
	public $sina_app_key;//微博App key
	public $sina_app_secret;//微博App Secret
	public $sina_login_validation;//微博登录时必须设置帐号和邮箱
	public $qq_status;//QQ登陆接口控制
	public $qq_app_id;//QQApp ID
	public $qq_app_key;//QQApp Key
	public $qq_login_validation;//QQ登录时必须设置帐号和邮箱
	public $wechat_status;//微信登陆接口控制
	public $wechat_app_id;//微信App key
	public $wechat_app_secret;//微信App Secret
	public $wechat_login_validation;//微信登录时必须设置帐号和邮箱
	public $wechat_share_status;//微信内分享登录接口
	public $wechat_share_id;//微博分享App ID
	public $wechat_share_secret;//微博分享App Secret
	public $validation_code;//验证代码
	public $protect_one;//错误密码几次，暂时封禁
	public $protect_two;//错误密码几次，封禁IP时间
	public $protect_one_num;//错误密码几次，暂时封禁
	public $protect_two_num;//错误密码几次，
	public $protect_two_time;//封禁IP时间
	/**
	 * @inheritdoc 验证规则
	 */
	public function rules()
	{
		return [
			[['login_limit','other_login','login_protect','sina_status','qq_status','wechat_status','wechat_share_status','sina_login_validation','qq_login_validation','wechat_login_validation'],'integer'],
			[['sina_app_key','qq_app_id','wechat_app_id','wechat_share_id','protect_one','protect_two'],'string'],
		];
	}

	/**
	 * @inheritdoc
	 */
	public function attributeLabels()
	{
		return [
			'login_limit' => '用户登录限制',
			'other_login' => '第三方登录',
			'login_protect' => '用户登录保护',
			'sina_status' => '微博登录接口',
			'sina_app_key' => 'App Key',
			'sina_app_secret' => 'App Secret',
			'sina_login_validation' => '登录时必须设置帐号和邮箱',
			'qq_status' => 'QQ登录接口',
			'qq_app_id' => 'App ID',
			'qq_app_key' => 'App Key',
			'qq_login_validation' => '登录时必须设置帐号和邮箱',
			'wechat_status' => '微信网页登录接口',
			'wechat_app_id' => 'App ID',
			'wechat_app_secret' => 'App Secret',
			'wechat_login_validation' => '登录时必须设置帐号和邮箱',
			'wechat_share_status' => '微信内分享登录接口',
			'wechat_share_id' => 'App ID',
			'wechat_share_secret' => 'App Secret',
			'validation_code' => '验证代码',
			'protect_one' => '暂时封禁用户',
			'protect_two' => '暂时封禁IP ',
		];
	}



}